/**
 * Created By zuoW 2018/6/20
 * 接取业务api
 */
import axiosUtils from '@api/env/axiosEnv'

let customAxios = axiosUtils._initAxios()

// 接取列表
export function queryPickUpBypage (param) {
  return customAxios({
    url: '/main/station/queryPickUpBypage',
    method: 'post',
    data: param
  })
}

// 接取保存
export function pickUpSave (param) {
  return customAxios({
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    url: '/main/station/pickUpSave',
    method: 'post',
    data: param
  })
}

// 车队派司机
export function dispatchToDriverPickUp (param) {
  return customAxios({
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    url: '/main/station/dispatchToDriverPickUp',
    method: 'post',
    data: param
  })
}

// 场站派车队
export function dispatchToFleetPickUp (param) {
  return customAxios({
    url: '/main/station/dispatchToFleetPickUp',
    method: 'post',
    data: param
  })
}

// 场站取消派车队
export function dispatchCancelToFleetPickUp (param) {
  return customAxios({
    url: '/main/station/dispatchCancelToFleetPickUp',
    method: 'post',
    data: param
  })
}

// 场站删除接取单
export function deletePickUp (param) {
  return customAxios({
    url: '/main/station/deletePickUp',
    method: 'post',
    data: param
  })
}

// 获取子运单详情
export function getSubOrderListFleet (param) {
  return customAxios({
    url: '/main/station/getSubOrderList',
    method: 'post',
    data: param
  })
}
